package org.graduation.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.graduation.model.common.ResponseResult;
import org.graduation.model.common.project.Project;
import org.graduation.model.common.user.User;

import java.util.List;

public interface ProjectService extends IService<Project> {
    /**
     * 邀请一个用户
     *
     * @param user
     * @return
     */
    ResponseResult invite(Project project, User user);

    /**
     * 邀请一群用户
     *
     * @param users
     * @return
     */
    ResponseResult invite(Project project, User[] users);

    ResponseResult removeUser(Project project, User user);

    ResponseResult removeUser(Project project, User[] users);

    List<Project> listByUser(Integer uid, Integer page);
}
